<#assign baseURL = springMacroRequestContext.getContextPath() />
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header" style="text-align: center">
                <div class="dropdown profile-element"> <span >
                            <img alt="用户头像" class="img-circle" src="${user_picture}" style="width: 120px;height: 120px;" />
                             </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <span class="clear"> <span class="block m-t-xs">
                                <strong class="font-bold">${role_name}</strong>
                             </span>
                                <span class="text-muted text-xs block">${user_name} <b class="caret"></b></span>
                            </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="${baseURL}/view/user_manage">修改</a></li>
                        <li><a href="${baseURL}/user_login/logout">退出</a></li>
                    </ul>
                </div>
            </li>
            <li <#if li_class ?? && li_class == "1-0"> class= "active" </#if>>
                <a href="${baseURL}/view/index"><i class="fa fa-dashboard"></i> <span class="nav-label">主页</span></a>
            </li>
            <li <#if li_class ?? && (li_class ? substring(0,1)) == "2"> class= "active" </#if>>
                <a href="#"><i class="fa fa-warning"></i><span class="nav-label">报警信息</span> <span class="fa arrow"></span> <#if totalLog ?? && totalLog != 0><span id="totalLog" class="label label-danger pull-right" style="margin-right: 5px;">${totalLog}</span></#if> </a>
                <ul class="nav nav-second-level">
                    <li <#if li_class ?? && li_class == "2-0"> class= "active" </#if>><a href="${baseURL}/view/fire_log"><i class="fa fa-circle-o"></i>火警记录<#if fireLog ?? && fireLog != 0><span id="fireLog" class="label label-danger pull-right" style="margin-right: 5px;">${fireLog}</span></#if></a></li>
                    <li <#if li_class ?? && li_class == "2-1"> class= "active" </#if>><a href="${baseURL}/view/fault_log"><i class="fa fa-circle-o"></i>故障记录<#if faultLog ?? && faultLog != 0><span id="faultLog" class="label label-warning pull-right" style="margin-right: 5px;">${faultLog}</span></#if></a></li>
                    <li <#if li_class ?? && li_class == "2-2"> class= "active" </#if>><a href="${baseURL}/view/false_log"><i class="fa fa-circle-o"></i>误报记录<#if falseLog ?? && falseLog != 0><span id="falseLog" class="label label-warning-light pull-right" style="margin-right: 5px;">${falseLog}</span></#if></a></li>
                </ul>
            </li>
            <li <#if li_class ?? && li_class == "3-0"> class= "active" </#if>>
                <a href="${baseURL}/view/map_show"><i class="fa fa-map-marker"></i> <span class="nav-label">地图展示</span></a>
            </li>
            <li <#if li_class ?? && li_class == "4-0"> class= "active" </#if>>
                <a href="${baseURL}/view/device"><i class="fa fa-cog"></i> <span class="nav-label">设备管理</span></a>
            </li>
            <li <#if li_class ?? && (li_class ? substring(0,1)) == "5"> class= "active" </#if>>
                <a href="#"><i class="fa fa-desktop"></i><span class="nav-label">监测点配置</span> <span class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <li <#if li_class ?? && li_class == "5-0"> class= "active" </#if>><a href="${baseURL}/view/map_config"><i class="fa fa-circle-o"></i>地图配置</a></li>
                    <li <#if li_class ?? && li_class == "5-1"> class= "active" </#if>><a href="${baseURL}/view/sensor_type_config"><i class="fa fa-circle-o"></i>传感器类别配置</a></li>
                    <li <#if li_class ?? && li_class == "5-2"> class= "active" </#if>><a href="${baseURL}/view/monitor_config"><i class="fa fa-circle-o"></i>监测点录入</a></li>
                    <li <#if li_class ?? && li_class == "5-3"> class= "active" </#if>><a href="${baseURL}/view/monitor_pos"><i class="fa fa-circle-o"></i>坐标点录入</a></li>
                </ul>
            </li>
            <li <#if li_class ?? && li_class == "6-0"> class= "active" </#if>>
                <a href="${baseURL}/view/system_log"><i class="fa fa-rss"></i> <span class="nav-label">系统日志</span></a>
            </li>
            <li <#if li_class ?? && li_class == "7-0"> class= "active" </#if>>
                <a href="${baseURL}/view/xls_io"><i class="fa fa-file-excel-o"></i> <span class="nav-label">导入导出</span></a>
            </li>
            <li <#if li_class ?? && li_class == "8-0"> class= "active" </#if>>
                <a href="${baseURL}/view/user_manage"><i class="fa fa-user"></i> <span class="nav-label">用户管理</span></a>
            </li>

        </ul>

    </div>
</nav>